<?php
class Usuarios_Form_Eliminar extends Form_Cna {
	
		
	public function __construct($options = null) {
		parent::__construct($options);
	}
	
	public function init() {
		//Crea el formulario para el eliminación de usuarios del sistema
		$this->setName ( 'info_usuario' );
		$this->setMethod("POST");
		
		$codusuario = new Zend_Form_Element_Hidden("codusuario");
		              
		$nombres = new Zend_Form_Element_Text ( 'nombres' );
		$nombres->setLabel ( 'Nombres : ' );

		$apellidos = new Zend_Form_Element_Text ( 'apellidos' );
		$apellidos->setLabel ( 'Apellidos : ' );
				
              
		$submit = new Zend_Form_Element_Submit ( 'btnSubmit' );
		$submit->setValue('Eliminar');

		
		$this->addElements ( array ( $codusuario,
									 $nombres,
									 $apellidos,
									 $submit
								 ) );
		
		$this->loadViewScriptDecorators();
//		$this->loadTableDecorators();
	}
	
	public function loadViewScriptDecorators() {
		$this->setDecorators ( array (array ('viewScript', array ('viewScript' => 'viewscripts/eliminar_form.phtml' ) ) ) );
	}

}